package bb.lanxing.mvp.model;

import bb.lanxing.lib.devices.core.utils.DeviceHelper;
import bb.lanxing.network.MyHttpClient;
//import bb.lanxing.network.BiciHttpClient;
import java.io.File;

public class XOSSVortexServerFirmwareModel extends SprintServerFirmwareModel {
    private String model;

    public XOSSVortexServerFirmwareModel(String str) {
        this.model = str;
    }

    @Override
    public String getVersionListUrl() {
        return versionUrl();
    }

    private String versionUrl() {
        return "http://file." + MyHttpClient.DOMAIN_BASE_PURE + "/XOSS_Vortex/" + this.model + "/firmware.json";
    }

    @Override
    public String getFirmwareDir() {
        return new File(DeviceHelper.getWorkDir(19), "fw_vortex").getAbsolutePath();
    }
}
